package com.stox.manager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stox.model.ExchangeDownloadMetadata;
import com.stox.repository.ExchangeDownloadMetadataRepository;

@Component
public class ExchangeDownloadMetadataManager {

	@Autowired
	private ExchangeDownloadMetadataRepository exchangeDownloadMetadataRepository;
	
	public ExchangeDownloadMetadata findByExchangeCode(String exchnageCode){
		return exchangeDownloadMetadataRepository.findByExchangeCode(exchnageCode);
	}
	
	public ExchangeDownloadMetadata save(ExchangeDownloadMetadata exchangeDownloadMetadata){
		return exchangeDownloadMetadataRepository.save(exchangeDownloadMetadata);
	}
	
}
